﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YQGL.Common;

namespace YQGL.Controllers
{
    public class AdminFrontController : Controller
    {
        BLL.TblUser TblUserBLL = new BLL.TblUser();
        //
        // GET: /AdminFront/

        public ActionResult Index()
        {

            string LoginID = OperateSession.get("AdminLoginID");
            if (string.IsNullOrEmpty(LoginID))
            {

                Response.Redirect(Url.Action("Index", "Index"));

                return null;
            }
            else
            {

                Model.TblUser TblUserModel = TblUserBLL.GetModel(LoginID);

                ViewData["LoginID"] = TblUserModel.UserName;
                return View();
            }
        }

    }
}
